<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>组织架构</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: "Microsoft YaHei", sans-serif;
            padding: 20px;
        }
        .title {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 30px;
            border-left: 5px solid #3366cc;
            padding-left: 10px;
        }
        .org-container {
            margin-top: 30px;
        }
        .legend {
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .legend-color {
            width: 20px;
            height: 10px;
            display: inline-block;
        }
        .legend-color.group {
            background-color: #3366cc;
            border-radius: 10px;
        }
        .legend-color.department {
            background-color: #ffcc66;
        }
        .legend-color.team {
            background-color: #99cc99;
        }
        .org-chart {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .org-level {
            display: flex;
            justify-content: center;
            width: 100%;
            margin-bottom: 30px;
        }
        .org-node {
            text-align: center;
            padding: 15px 20px;
            border-radius: 5px;
            margin: 0 10px;
            min-width: 120px;
            position: relative;
        }
        .group-node {
            background-color: #3366cc;
            color: white;
            border-radius: 50px;
        }
        .department-node {
            background-color: #ffcc66;
        }
        .team-node {
            background-color: #99cc99;
        }
        .connector {
            width: 2px;
            height: 30px;
            background-color: #999;
            margin: 0 auto -15px;
        }
        .horizontal-connector {
            height: 2px;
            background-color: #999;
            position: absolute;
            top: 50%;
        }
        .departments-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            width: 100%;
            position: relative;
            margin-top: 20px;
        }
        .department-column {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .teams-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
        }
    </style>
</head>
<body>    
    <div class="org-container">
        <h2>组织架构</h2>
        
        <div class="legend">
            <span>图例：</span>
            <div class="legend-item">
                <span class="legend-color group"></span>
                <span>集团</span>
            </div>
            <div class="legend-item">
                <span class="legend-color department"></span>
                <span>行政部门</span>
            </div>
            <div class="legend-item">
                <span class="legend-color team"></span>
                <span>部门小组</span>
            </div>
        </div>
        
        <div class="org-chart">
            <!-- 顶级节点 - 集团 -->
            <div class="org-level">
                <div class="org-node group-node">某某集团</div>
            </div>
            
            <!-- 连接线 -->
            <div class="connector"></div>
            
            <!-- 部门级别 -->
            <div class="departments-container">
                <div class="department-column">
                    <div class="org-node department-node">采购部</div>
                    <div class="connector"></div>
                    <div class="teams-container">
                        <div class="org-node team-node">采购一组</div>
                        <div class="org-node team-node">采购二组</div>
                    </div>
                </div>
                
                <div class="department-column">
                    <div class="org-node department-node">财务部</div>
                </div>
                
                <div class="department-column">
                    <div class="org-node department-node">质量部</div>
                </div>
                
                <div class="department-column">
                    <div class="org-node department-node">仓运部</div>
                </div>
                
                <div class="department-column">
                    <div class="org-node department-node">销售部</div>
                    <div class="connector"></div>
                    <div class="teams-container">
                        <div class="org-node team-node">销售一组</div>
                        <div class="org-node team-node">销售二组</div>
                        <div class="org-node team-node">销售三组</div>
                    </div>
                </div>
                
                <div class="department-column">
                    <div class="org-node department-node">产品部</div>
                </div>
            </div>
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 可以添加交互逻辑
        });
    </script>
</body>
</html>
